package com.hui.security.bak;

import com.hui.security.sys.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    int deleteByPrimaryKey(String userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    int batchInsert(@Param("recordList") List<User> recordList);

    int batchDelete(@Param("ids") String[] ids);

    int batchUpdate(@Param("recordList") List<User> recordList);

    User selectByMobileAndAccount(@Param("account") String account, @Param("mobile") String mobile);

    User selectByUserAccount(@Param("account") String account);

    List<User> selectByGroupId(@Param("groupId") String groupId);

    void deleteRefByRoleId(@Param("roleId") String roleId);


}